import {BASE,KEY,ID} from '../config/index.js'
export const $http = (url)=>{
	return new Promise((resolve,reject)=>{
		uni.request({
			url:`${BASE}/1.1/${url}`,
			header:{
				 "X-LC-Id": ID,
				 "X-LC-Key": KEY,
				 "Content-Type": "application/json"
			},
			success: (res) => {
				resolve(res)
			},
			fail: (err) => {
				reject(err)
			}
		})
	})
}